<g:hiddenField name="codBarra"/>
<g:hiddenField name="total"/>
<g:each var="i" status="u" in="${1..40}">
  <div class="fieldcontain ${hasErrors(bean: produtoInstance, field: 'codBarra', 'error')} required">
    <label for="codBarra">
      <g:message code="produto.codBarra.label" default="Cod Barra" />
    </label>
    <input style="width: 70px; margin-right: 10px" type="text" name="codBarra" maxlength="8" value="" />
    QTD
    <input style="width: 50px" type="text" name="total" maxlength="3" value="" />
  </div>
</g:each>
